<template>
  <div class="goods-list">
    <goods-list-item 
      v-for="item in goodslist" 
      :key="item.index" 
      :goodslistitem="item" 
      class="goods-list-item">
    </goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from "./GoodsListItem";
export default {
  components: {
    GoodsListItem
  },
  props: {
    goodslist: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style scoped>
.goods-list {
  width: 100%;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
}

.goods-list-item {
  /* float: left; */
  width: 50%;
  text-align: center;
}
</style>